<div class="compo person <?= ($primary)?'primary':''; ?>" rel="<?= $person->id; ?>" parents="<?php echo ($rel = $person->parents()) ? $rel->id : null; ?>">

    <?php if($person->parents() and $primary): ?>
    <div class="link-person"></div>
    <?php endif; ?>

    <div class="name"><?= $person->fullname(); ?></div>
    <div class="birthdate"><?= $person->birthdate(); ?></div>
</div>